﻿using General.IServices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using General.Entity;
using General.IRepository;

namespace General.Services
{
    public class PersonServices : IPersonServices
    {
        IPersonRepository iPerson;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="_iPerson"></param>
        public PersonServices(IPersonRepository _iPerson)
        {
            this.iPerson = _iPerson;
        }

        public List<Person> GetAll()
        {
            iPerson.Insert(new Person());
            return iPerson.GetAll();
        }
    }
}
